#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int a[110];
int main()
{
	int t;
	scanf("%d", &t);
	while (t--)
	{
		int n;
		scanf("%d", &n);
		for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
		sort(a + 1, a + n + 1);
		if (n < 10 || n>13)
		{
			printf("No\n");
			continue;
		}
		else if (a[1] != 1)
		{
			printf("No\n");
			continue;
		}
		else if (a[2] != 1)
		{
			printf("No\n");
			continue;
		}
		else
		{
			int f = 1;
			for (int i = 1; i <= n; i++)
			{
				if (i != n - 1 && (i != n))
				{
					if (abs(a[i] - a[i + 1]) > 2)
					{
						f = 0;
						break;
					}
				}
			}
			if (f)
				printf("Yes\n");
			else
				printf("No\n");
		}
	}
	return 0;
}